<?
 $fl=$this->friendsList;
 $uid=$this->session->profile;
 ?>
<div style="width: 650px; top:500px; clear: both;" class="body " id="main">
	<div id="content">
		
<?

if(isset($this->errorMessage)){

		echo $this->errorMessage;

}?>

	<?php
        if (count($fl)<1){
           ?>
            <article class="round_edge_10px block">
		<a href="#"><span>You have no friends.</span></a>
                &nbsp;&nbsp;
            </article>
            <?
        }
        else
        foreach ($fl as $f){
            if ($uid===$f->getFounder_id()){        
                ?>
            <article class="round_edge_10px block">
		<a href="#"><span style="text-align:center; vertical-align: middle;"><?=$f->getTaget_name();?></span></a>
                &nbsp;&nbsp;
            </article>
<?

                }
                else {
                    ?>

            <article class="round_edge_10px block">
		<a href="#"><span><?=$f->getFounder_name();?></span></a>
                &nbsp;&nbsp;
            </article>
                <?
                }
                                
                }
                ?>

	</div>
	<div id="sidebar">
        <aside id="featured1" name="bulletin" class="round_edge_10px block featured">
		<h4>Bulletin</h4>
                <?if (true){
                    echo "This is the day!";
                }?>
  	</aside>

	<!--end of featured recommendation-->
	</div>
        </div>
<script>
    
</script>

